﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><#if isAddAction>添加<#else>编辑</#if>费用结算信息</title>
<#include "/admin/common_css.ftl">
<#include "/admin/common_js.ftl">
<script type="text/javascript">
$(function() {
	
});
</script>
</head>
<body class="input">
	<div class="bar">
		<#if isAddAction>添加<#else>编辑</#if>费用结算信息
	</div>
	<div id="validateErrorContainer" class="validateErrorContainer">
		<div class="validateErrorTitle">以下信息填写有误,请重新填写</div>
		<ul></ul>
	</div>
	<div class="body">
		<form id="validateForm" action="${base}/faith/reserve/costupdate" method="post">
			<input type="hidden" name="id" value="${(reservation.id)!}" />
			<table class="inputTable">
				<tr>
					<th>
						仪器编号: 
					</th>
					<td>
					     ${(reservation.device.classifyId)!}
					</td>
				</tr>
				<tr>
					<th>
						仪器名称: 
					</th>
					<td>
						${(reservation.device.propertyName)!}
					</td>
				</tr>
				<tr>
					<th>
						费用类型: 
					</th>
					<td>
						<#if reservation.costType == 1>按时间计费
							<#elseif reservation.costType == 2>按样品数量计费
							<#else>未描述
						</#if>
					</td>
				</tr>
				<tr>
					<th>
						样品个数: 
					</th>
					<td>
					    <#if (reservation.sampleCount)??>${reservation.sampleCount}个样品
							<#else>按时间计费
						</#if>
					</td>
				</tr>
				<tr>
					<th>
						预约开始时间: 
					</th>
					<td>
						${(reservation.beginDate)!}
					</td>
				</tr>
				<tr>
					<th>
						预约结束时间: 
					</th>
					<td>
						${(reservation.endDate)!}
					</td>
				</tr>
				<tr>
					<th>
						预约总时长: 
					</th>
					<td>
						${(reservation.differenceValue)!0}小时
					</td>
				</tr>
				<tr>
					<th>
						预算: 
					</th>
					<td>
						${(reservation.budget)!0}元
					</td>
				</tr>
				<tr>
					<th>
						决算: 
					</th>
					<td>
						<input type="text" name="revenue" class="formText" value="${(reservation.revenue)!0}" />元
					</td>
				</tr>
				<tr>
					<th>
						结算情况: 
					</th>
					<td>
						<select name="chargeStatus">
							<option value="1"<#if (reservation.chargeStatus)??&&reservation.chargeStatus == 1> selected</#if>>
								已结算
							</option>
							<option value="2"<#if (reservation.chargeStatus)??&&reservation.chargeStatus == 2> selected</#if>>
								未结算
							</option>
						</select>
					</td>
				</tr>
			</table>
			<div class="buttonArea">
				<input type="submit" class="formButton" value="确  定" hidefocus />&nbsp;&nbsp;
				<input type="button" class="formButton" onclick="window.history.back(); return false;" value="返  回" hidefocus />
			</div>
		</form>
	</div>
</body>
</html>